<?php

namespace App\Models;

class UserRead extends Base
{
    public $timestamps = false;

    public static function getReadIds($user_id) {
        $str = self::where('uid', $user_id)->value('content');
        $arr = explode(",", substr($str, 1,-1));
        return !empty($arr[0]) ? $arr : [];
    }
}
